// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 分页获取登录日志列表 GET /supplyChain/logs/login */
export async function getLoginLogs(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getLoginLogsParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageRespLoginLogsVo>(
    `/barter-user/supplyChain/logs/login`,
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 分页获取操作日志列表 GET /supplyChain/logs/operate */
export async function getOperateLogs(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getOperateLogsParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageRespOperateLogsVo>(
    `/barter-user/supplyChain/logs/operate`,
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
